package com.fbty.mt.domain;
/**
 * 上传独享ip时，ip错误的
 */
import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "tab_error_ip_info", catalog = "mt", uniqueConstraints = {})
public class ErrorIpInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true)
	private Integer id;
	/**
	 * ip地址
	 */
	private String ip;
	/** 类型  */
	private String type;
	/** 实际端口  */
	private String port;
	/** 上传时间  */
	private Date uploadTime;
	
	private String country;
	
	private String region;
	
	private String city;
	/**
	 * 1代表共享
	 * 2代表独享
	 */
	private Integer state;
	
	
	
	public ErrorIpInfo() {
		super();
	}
	public ErrorIpInfo(String ip, String type, String port) {
		super();
		this.ip = ip;
		this.type = type;
		this.port = port;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getPort() {
		return port;
	}
	public void setPort(String port) {
		this.port = port;
	}
	public Date getUploadTime() {
		return uploadTime;
	}
	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}
	
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	@Override
	public String toString() {
		return ip+"|"+port+"|"+type+"|"+country+"|"+region+"|"+city;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getRegion() {
		return region;
	}
	public void setRegion(String region) {
		this.region = region;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	
}
